<template>
  <div id="basiclayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <!--  引入路由布局 指向的文件内容  -->
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">CxCS-OJ by cxcs</a-layout-footer>
    </a-layout>
  </div>
</template>

<style>
#basiclayout {
}

#basiclayout .header {
  margin-bottom: 16px;
  box-shadow: #eee 1px 1px 5px;
}

#basiclayout .content {
  /*background: linear-gradient(to right, #eee, #fff);*/
  margin-bottom: 16px;
}

#basiclayout .footer {
  background: #efefef;
  position: sticky;
  bottom: 0;
  right: 0;
  left: 0;
  text-align: center;
}
</style>
<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
</script>
